package ru.slovoslovo.cropmotion.cropping;

public class CropRegion {

    /**
     * region applying order
     * lower value is a higher priority
     */
    private int order = 100;
    
    /**
     * Crop factor, in percent
     */
    private int cropValue = 0;

    /**
     * Margin relative to horizontal anchor
     */
    private int marginX = 0;

    /**
     * Margin relative to vertical anchor
     */
    private int marginY = 0;

    /**
     * Vertical anchor
     */
    private AlignX alignX = AlignX.CENTER;

    /**
     * Horizontal anchor
     */
    private AlignY alignY = AlignY.CENTER;

    public CropRegion(int percent, int marginX, int marginY, AlignX alignX, AlignY alignY) {
        this.cropValue = percent;
        this.marginX = marginX;
        this.marginY = marginY;
        this.alignX = alignX;
        this.alignY = alignY;
    }

    public CropRegion() {

    }

    public int getCropValue() {
        return cropValue;
    }

    public void setCropValue(int cropValue) {
        this.cropValue = cropValue;
    }

    public int getMarginX() {
        return marginX;
    }

    public void setMarginX(int marginX) {
        this.marginX = marginX;
    }

    public int getMarginY() {
        return marginY;
    }

    public void setMarginY(int marginY) {
        this.marginY = marginY;
    }

    public AlignX getAlignX() {
        return alignX;
    }

    public void setAlignX(AlignX alignX) {
        this.alignX = alignX;
    }

    public AlignY getAlignY() {
        return alignY;
    }

    public void setAlignY(AlignY alignY) {
        this.alignY = alignY;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

}
